<?php use_helper('Validation'); ?>

<?php echo form_tag('@default?lang='.$sf_user->getLang().'&module=account&action=login', array('name' => 'login', 'class' => 'form')); ?>
<fieldset>
<legend><?php echo __('Login'); ?></legend>

  <?php if ($sf_request->hasError('login')): ?>    
    <div id="login_error"><?php echo form_error('login', array('class' => 'errorField')) ?></div>
  <?php endif; ?> 

<dl>
  <dt><?php echo label_for('username', __('Username')); ?></dt>
  <dd><?php echo form_error('username') ?></dd>
  <dd><?php echo input_tag('username', '', array('class' => 'text-field')); ?></dd>
</dl>

<dl>
  <dt><?php echo label_for('password', __('Password')); ?></dt>
  <dd><?php echo form_error('password') ?></dd>
  <dd><?php echo input_password_tag('password', '', array('class' => 'text-field')); ?></dd>
</dl>

<dl>
  <dt>&nbsp;</dt>
  <dd><?php echo label_for('remember', checkbox_tag('remember', '1', false).'&nbsp;'.__('Remember me.')); ?></dd>
</dl>

<dl>
  <dt>&nbsp;</dt>
  <dd>
    <?php echo submit_tag('Login', array('class' => 'submit-button')); ?>&nbsp;
    <?php echo link_to(__('Forgot password?'), '@default?lang='.$sf_user->getLang().'&module=user&action=reset'); ?>
  </dd>
</dl>

</fieldset>
</form>